package com.console.operations.fundmgr;

import com.common.test.OperationBase;
import com.common.test.UITestBase;
import com.console.pages.fundmgr.OffLineRechargeAccountTransferPage;

	/**
		@author 王嘉犇
		@name 线下充值帐户转账
		@type 动作类
	 */

public class OffLineRechargeAccountTransfer extends OperationBase {

	public OffLineRechargeAccountTransfer(UITestBase tb){
		super(tb);
	}
	
	public void transfer(String cellphone, String transferfee) throws Exception{
		switchToDefaultContent();
		OffLineRechargeAccountTransferPage orap = new OffLineRechargeAccountTransferPage(tb);
		waitForElementExist(orap.mobilephoneinput);
		orap.mobilephoneinput.type(cellphone);
		pause(700);
		orap.searchButton.click();
		waitForPageContainsStr("该账户余额");
		pause(2000);
		orap.accounttypeselect.selectOptionByText("现金");
		pause(700);
		orap.transferfeeinput.type(transferfee);
		orap.applyTransferButton.click();
		waitForPageContainsStr("成功");
	}
}
